package com.ruoyi.train.mapper;

import java.util.List;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.ruoyi.train.domain.JyTrainingSchoolCourseMaterialSpecs;
import org.apache.ibatis.annotations.Param;

/**
 * 培训课程物资套餐Mapper接口
 *
 * @author aulbrother
 * @date 2024-04-06
 */
public interface JyTrainingSchoolCourseMaterialSpecsMapper {
    /**
     * 查询培训课程物资套餐
     *
     * @param id 培训课程物资套餐主键
     * @return 培训课程物资套餐
     */
    @DS("train")
    JyTrainingSchoolCourseMaterialSpecs selectJyTrainingSchoolCourseMaterialSpecsById(Long id);

    /**
     * 查询培训课程物资套餐列表
     *
     * @param jyTrainingSchoolCourseMaterialSpecs 培训课程物资套餐
     * @return 培训课程物资套餐集合
     */
    @DS("train")
    List<JyTrainingSchoolCourseMaterialSpecs> selectJyTrainingSchoolCourseMaterialSpecsList(JyTrainingSchoolCourseMaterialSpecs jyTrainingSchoolCourseMaterialSpecs);

    /**
     * 修改培训课程物资套餐
     *
     * @param jyTrainingSchoolCourseMaterialSpecs 培训课程物资套餐
     * @return 结果
     */
    @DS("train")
    int updateJyTrainingSchoolCourseMaterialSpecs(JyTrainingSchoolCourseMaterialSpecs jyTrainingSchoolCourseMaterialSpecs);

    @DS("train")
    List<JyTrainingSchoolCourseMaterialSpecs> selectJyTrainingSchoolCourseMaterialSpecsByCourseId(@Param("courseId") Long courseId);
}
